package com.zitangkou.user.req.user;

import com.zitangkou.user.enums.user.CodeTypeEnum;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 发送邮箱验证码请求参数类
 *
 * @author Deng Ningning
 * @version 1.0
 * @date 2020/8/19 11:52
 */
@Data
@Accessors(chain = true)
public class SendEmailCodeReq {
    /**
     * 邮箱号码
     */
    @NotBlank(message = "邮箱号码不能为空")
    private String email;
    /**
     * 验证码类型
     */
    @NotNull(message = "验证码类型不能为空")
    private CodeTypeEnum codeType;
}
